module.exports = {
  // 相对于outputDir的静态资源(js、css、img、fonts)目录
  outputDir: "../www",
  // outputDir: "dist",
  publicPath: './',
  devServer: {
    proxy: {
      '/GenerateIMSXml.asmx': {
        //target: 'http://192.168.43.96:3287',
        // target: 'http://47.107.187.189:82',
        changeOrigin: true,
      },
      '/api': {
        //target: 'http://192.168.43.96:3287',
        // target: 'http://47.107.187.189:82',
        changeOrigin: true,
      },
    }
  },
  configureWebpack: (config) => {
    if (process.env.NODE_ENV === 'production') {// 为生产环境修改配置...
      config.mode = 'production';
      config["performance"] = {//打包文件大小配置
        "maxEntrypointSize": 10000000,
        "maxAssetSize": 30000000
      }
    }
  }
}
